import { createStore } from "redux"

const notices = (state = { isAllRead: false, count: 8 }, action) => {
    console.log('action', action)
    switch (action.type) {
        case "READ_ALL":
            return { ...state, isAllRead: true }
        default:
            return state
    }
}

const store = createStore(notices)

export default store